/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export default {
    path: '/performSet',
    component: Layout,
    redirect: '/performSet/scoreIndex',
    alwaysShow: true, // will always show the root menu
    name: 'performSet',
    meta: {
        title: '绩效设置',
        icon: 'permission'
    },
    children: [

        {
            path: '/performSet/detail',
            name: 'performSetDetail',
            component: () => import('@/views/performance/index.vue'),
            meta: { title: '岗位管理与岗位绩效', icon: 'personnel' },
        },
        {
            path: '/performSet/edit',
            name: 'edit',
            component: () => import('@/views/performance/editRule.vue'),
            meta: { title: '考核规则', icon: 'personnel' },
            hidden: true,//true不显示在侧边栏
        },
        {
            path: '/performSet/scoreIndex',
            component: () => import('@/views/perform-set/scoreIndex.vue'),
            name: 'scoreIndex',
            meta: { title: '评分条目设置', icon: 'role' }
        },
        {
            path: '/performSet/pieceIndex',
            component: () => import('@/views/perform-set/pieceIndex.vue'),
            name: 'pieceIndex',
            meta: { title: '计件条目设置', icon: 'role' }
        },
        {
            path: '/performSet/kpiIndex',
            component: () => import('@/views/perform-set/kpiIndex.vue'),
            name: 'kpiIndex',
            meta: { title: '提成条目设置', icon: 'role' }
        },
        {
            path: '/performSet/wageDeclareOkr',
            component: () => import('@/views/perform-set/wageDeclareOkr.vue'),
            name: 'wageDeclareOkr',
            meta: { title: 'OKR设置', icon: 'role' }
        },
    ]
}